﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Harkon.AppServer.cOne.Deployment
{
    [XmlRoot("description")]
    public class ComponentDescription
    {
        [XmlElement("Name")]
        public string Name { get; set; }
        [XmlElement("Autostart")]
        public bool Autostart { get; set; }
        [XmlElement("Dependencies")]
        public string[] Dependencies { get; set; }
        public ComponentDescription Predecessor { get; set; }

        public override string ToString()
        {
            return string.Format("[{0}]", Name);
        }
    }
}
